﻿using System;

namespace RecaptchaMvc {
	public class RecaptchaValidationException : ApplicationException {
		private const string _errorMessage = "reCAPTCHA validation failed.";

		public RecaptchaValidationException(IRecaptchaResponse response) : this(response, RecaptchaValidationException._errorMessage) {}
		public RecaptchaValidationException(IRecaptchaResponse response, string message) : base(message) {
			this.Response = response;
		}

		public IRecaptchaResponse Response { get; private set; }
	}
}